<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="./plugins/element-ui/lib/theme-chalk/index.css">
    <script src="./js/vue.js"></script>
    <script src="./plugins/element-ui/lib/index.js"></script>
</head>
<style>
    .el-carousel__item h3 {
        color: #475669;
        font-size: 14px;
        opacity: 0.75;
        line-height: 200px;
        margin: 0;
    }
    .el-carousel__item:nth-child(2n) {
        background-color: #99a9bf;
    }
    .el-carousel__item:nth-child(2n+1) {
        background-color: #d3dce6;
    }
</style>
<body>
<div id="app">
    <template>
        <el-carousel :interval="4000" type="card" height="200px">
            <el-carousel-item v-for="item in items" :key="item">
                <h3 class="medium"><img :src="item" alt=""></h3>
            </el-carousel-item>
        </el-carousel>
    </template>

</div>
</body>
<script>
    new Vue({
        el: "#app",
        data() {
            return {
                username: '',
                items:['./images/bac1.jpg','./images/bac2.jpg','./images/bac3.jpg'],
            }
        },

    })
</script>

</html>